package io.github.xyzboom.cj.data

class DebugExpression(
    val id: Int,
    val type: String,
    val evalStr: String
) {
    var beginLine: Int? = null
    var beginColumn: Int? = null
    var endLine: Int? = null
    var endColumn: Int? = null

    /**
     * if any of the position properties does not exist in Cangjie DAP server,
     * we can say that the expression is not a Cangjie AST type.
     * So we say that the [io.github.xyzboom.cj.data.DebugExpression] will never ready.
     */
    var willNeverReady: Boolean = false
    val ready: Boolean get() = beginLine != null && beginColumn != null && endLine != null && endColumn != null
}